﻿<script type="text/javascript">
 $(document).ready(function(){
   sdmg("{\"token\":\""+token+"\", \"combat_skill\":1}");
   sdmg("{\"token\":\""+token+"\", \"combat_member\":1}");

   var h1 = $(".zd_top").height();
   var h2 = $(".zd_bottom").height();
   var H = $(window).height();
   $(".zd_mid").css("height",H-h1-h2);

 })

// 血条内力条增加
function BarAdd(pid, css, now, bl) {
  //初始化js进度条
  $(css).css("width", now+"%");
  //进度条的速度，越小越快
  var speed = 3;
  var nowWidth = now;

  pid = setInterval(function() {
    //宽度要不能大于进度条的总宽度
    if(nowWidth < bl) {
      nowWidth++;
      $(css).css("width", nowWidth + "%");
    }
    else {
      //进度条读满后，停止
      clearInterval(pid);
    } 
  }, speed);
}



function BloodPH(pid, cls, damage) {
  $(cls).html(damage);
  $(cls).css("top", "28px");
  var top = 28;
  pid = setInterval(function() {
    if(top > 1) {
      top--;
      $(cls).css("top", top + "px");
    }
    else {
      clearInterval(pid);
      $(cls).html("");
    }
  }, 25);
}


// 血条内力条减少
function BarSub(pid, css, now, bl) {
  //初始化js进度条
  $(css).css("width", now+"%");
  //进度条的速度，越小越快
  var speed = 3;
  var nowWidth = now;

  pid = setInterval(function() {
    if(nowWidth > bl) {
      nowWidth--;
      $(css).css("width", nowWidth + "%");
    }
    else {
      clearInterval(pid);
    } 
  }, speed);
}
</script>

<div class="bd02">
  <!-- 敌方 -->
<div class="zd_top">
 <!-- 敌方人员信息 -->
 <div class="zd_con1" id="memberB"></div>

 <div class="zd_line1"></div>
</div>
<div class="zd_mid">
 <div class="zd_con2">
      <p>结果只是勉强造成一处轻微的伤害。<br/>造成<span>21</span>点伤害。</p>

      <p><span>你爆发出无边真气！对方的防御降低了。</span></p>

      <p>微一凝神，你运起无极内功，足底尘土泛起，真气冲关欲出。</p>

      <p><span>你爆发出无边真气！对方的防御降低了。</span></p>

      <p>身形再转，微一凝神，你运起无极内功，足底尘土泛起，真气冲关欲出。</p>

      <p>结果只是轻轻地碰到，比拍苍蝇稍微重了点。<br/>造成<span>194</span>点伤害。</p>

      <p>微一凝神，你运起无极内功，足底尘土泛起，真气冲关欲出。</p>

      <p><span>你爆发出无边真气！对方的防御降低了。</span></p>
    </div>
    <div class="zd_line2"></div>
</div>

<!-- 己方 -->
<div class="zd_bottom">
 <!-- 己方人员信息 -->
 <div class="zd_con1" id="memberA"></div>

 <div class="zd_con3">
   <button class="zd">自动</button><div class="zdjd3_con"><div class="zd_jd3"><span class="zdjd3_hs zdjd3_hs50"></span></div><span class="zhi2">1/10</span></div><button class="tp">逃跑</button>
</div>
 <div class="zd_con4">
   <a href="#" class="zd_ng">天峰无极剑壹</a><a href="#" class="zd_ng">天峰无极剑壹</a><a href="#" class="zd_ng  zd_ng1">天峰无极剑壹</a><a href="#" class="zd_ng">天峰无极剑壹</a><a href="#" class="zd_ng">天峰无极剑壹</a><a href="#" class="zd_ng">天峰无极剑壹</a>
   <div class="zd_con4_r">
   <div class="zd_img1"><img src="images/zb1.png" alt=""><span class="num">100</span></div>
   <div class="zd_img1"></div>
   </div>
  </div>
 </div>

 </div>